
function initialize() {
	if (typeof userName == "undefined") {
		// TODOF: logoutボタンの有無
		document.getElementById("toLogout").setAttribute("class", "NoDisp");
		return;
	}
    $("#column2").show("drop");
}
	
if (window.addEventListener) {
	window.addEventListener('load', initialize, false);
} else if (window.attachEvent) {
	window.attachEvent('onload', initialize);
} else {
	//window.onload = initialize;
}

function saveUserName() {
	var userName = document.getElementById("inputUserName").value;
	sessionStorage.setItem("USER_NAME", userName);
	document.getElementById("labelUserName").innerHTML = userName;
}

function loadUserName() {
	var userName = sessionStorage.getItem("USER_NAME");
	document.getElementById("labelUserName").innerHTML = userName;
}